package com.huanri.patterns.observer;

/**
 * @author Nemo
 * @date 2012-8-20 at MyCode
 */
public class HuangPuCitizen extends Citizen {

	public HuangPuCitizen(Policeman pol){
		setPoliceMen();
		resigister(pol);
	}
	@Override
	public void sendMessage(String help) {
		setHelp(help);
		for(int i=0;i<pols.size();i++){
			Policeman pol = (Policeman)pols.get(i);
			pol.action(this);
		}
	}
}
